﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace ZR.Model.mes.pro
{
    /// <summary>
    /// 产线叫料
    ///</summary>
    [SugarTable("pro_callmaterial")]
    public class ProCallmaterial
    {
        /// <summary>
        /// 编号 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true   )]
         public int Id { get; set; }
        /// <summary>
        /// fk_生产任务id 
        ///</summary>
         [SugarColumn(ColumnName="fk_task_id"    )]
         public int? FkTaskId { get; set; }
        /// <summary>
        /// 物料id 
        ///</summary>
         [SugarColumn(ColumnName="material_id"    )]
         public string MaterialId { get; set; }
        /// <summary>
        /// 物料code 
        ///</summary>
         [SugarColumn(ColumnName="material_code"    )]
         public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称 
        ///</summary>
         [SugarColumn(ColumnName="material_name"    )]
         public string MaterialName { get; set; }
        /// <summary>
        /// 叫料数量 
        ///</summary>
         [SugarColumn(ColumnName="call_num"    )]
         public decimal? CallNum { get; set; }
        /// <summary>
        /// 叫料时间 
        ///</summary>
         [SugarColumn(ColumnName="call_time"    )]
         public DateTime? CallTime { get; set; }
        /// <summary>
        /// 得到数量 
        ///</summary>
         [SugarColumn(ColumnName="arrive_num"    )]
         public decimal? ArriveNum { get; set; }
        /// <summary>
        /// 叫料是否成功(0，1) 
        ///</summary>
         [SugarColumn(ColumnName="status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 备用字段1 
        ///</summary>
         [SugarColumn(ColumnName="attr1"    )]
         public string Attr1 { get; set; }
        /// <summary>
        /// 备用字段2 
        ///</summary>
         [SugarColumn(ColumnName="attr2"    )]
         public string Attr2 { get; set; }
        /// <summary>
        /// 备用字段3 
        ///</summary>
         [SugarColumn(ColumnName="attr3"    )]
         public string Attr3 { get; set; }
        /// <summary>
        /// 租户号 
        ///</summary>
         [SugarColumn(ColumnName="TENANT_ID"    )]
         public string TenantId { get; set; }
        /// <summary>
        /// 乐观锁 
        ///</summary>
         [SugarColumn(ColumnName="REVISION"    )]
         public int? Revision { get; set; }
        /// <summary>
        /// 创建人 
        ///</summary>
         [SugarColumn(ColumnName="CREATED_BY"    )]
         public string CreatedBy { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="CREATED_TIME"    )]
         public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 更新人 
        ///</summary>
         [SugarColumn(ColumnName="UPDATED_BY"    )]
         public string UpdatedBy { get; set; }
        /// <summary>
        /// 更新时间 
        ///</summary>
         [SugarColumn(ColumnName="UPDATED_TIME"    )]
         public DateTime? UpdatedTime { get; set; }
    }
}
